﻿@model IEnumerable<Core.Objetos.Arquivo>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<form method="get" action="@Url.Action("Busca")" enctype="multipart/form-data">
    Procurar: <input id="query" name="query" type="text" /><input type="submit" value="Buscar" />
</form>

<p>
    @Html.ActionLink("Criar novo", "Criar")
</p>

<table>
    <tr>
        <th>
            Nome
        </th>
        <th>
            Características
        </th>
        <th>
            Formato
        </th>
        <th>
            Armazenamento
        </th>
        <th>
            Ambiente de Software
        </th>
        <th>
            Ambiente de Hardware
        </th>
        <th>
            Dependências
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Nome)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Caracteristicas)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Formato)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Armazenamento)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AmbienteSoftware)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AmbienteHardware)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Dependencias)
        </td>
        <td>
            @Html.ActionLink("Editar", "Editar", new { id=item.ArquivoId }) |
            @Html.ActionLink("Detalhes", "Detalhes", new { id=item.ArquivoId }) |
            @Html.ActionLink("Remover", "Remover", new { id=item.ArquivoId })
        </td>
    </tr>
}

</table>
